# 通过集成Thread重写run()来创线程

from threading import Thread
from time import sleep,ctime

class MyThread(Thread):
    def __init__(self):
        super(MyThread, self).__init__()

    def run(self):
        for i in range(3):
            print("正在唱歌...%d"%i)
            sleep(1)
        

if __name__ == '__main__':
    t1 = MyThread()
    t1.start()